{extend name="public/user" /}

{block name="content"}
    <!--
    <div class="fly-msg" style="margin-top: 15px;">
      您的邮箱尚未验证，这比较影响您的帐号安全，<a href="activate.html">立即去激活？</a>
    </div>
    -->
    <div class="layui-tab layui-tab-brief" lay-filter="user" id="LAY_uc">
      <ul class="layui-tab-title" id="LAY_mine">
        <li data-type="mine-jie" lay-id="index" href="{:url('user/post')}#index" class="layui-this">我发的帖</li>
        <li data-type="collection" lay-id="collection" href="{:url('user/post')}#collection">我的收藏</li>
        <li lay-id="postarc"><a href="{:url('article/add')}">我要发帖</a></li>
      </ul>
      <div class="layui-tab-content" style="padding: 20px 0;">
        <div class="layui-form layui-form-pane  layui-tab-item layui-show">
			    <table class="layui-table" lay-skin="line" lay-filter="art-post" id="art-post"></table>
        </div>
        <div class="layui-form layui-form-pane  layui-tab-item">
          <table class="layui-table" lay-skin="line" lay-filter="coll-post" id="coll-post"></table>
        </div>
      </div>
    </div>
	
	<script type="text/html" id="artTool">
		<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
	</script>
	<script type="text/html" id="collTool">
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">取消</a>
	</script>

{/block}
{block name="script"}
{/block}